package com.beamfield.dao.device;

import com.beamfield.model.DeviceDeman;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceDemanMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeviceDeman record);

    int insertSelective(DeviceDeman record);

    DeviceDeman selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DeviceDeman record);

    int updateByPrimaryKey(DeviceDeman record);
    List<DeviceDeman> selectByProjectId(@Param("projectId") String projectId,
                                        @Param("demandName") String demandName,
                                        @Param("offset") String offset,
                                        @Param("limit") String limit,
                                        @Param("recordSource") String recordSource,
                                        @Param("beamId") Long beamId);

    long countByProjectId(@Param("projectId") String projectId, @Param("demandName") String demandName,
                          @Param("recordSource") String recordSource,
                          @Param("beamId") Long beamId);

    List<DeviceDeman> selectByType(@Param("type") String type,@Param("recordSource") String recordSource, @Param("beamId") Long beamId);
}